package com.dks.repository;

import java.util.*;

import com.dks.dto.RewardDto;
import com.dks.models.Reward;
import com.dks.result.ResultModel;

public interface IRewardRepository {

    Integer insert(Reward reward);

    Integer update(Reward reward);

    Integer delete(Integer id);

    Reward select(Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<RewardDto> getByMapList(Map<String, Object> map);

    Integer updateByCode(Reward reward);

    Reward selectByBfCode(String bfCode);

    ResultModel<Object> getTaskInfo(Integer parentId,Integer pageNum, Integer pageSize,Integer rewardType);
}
